﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseSet.Data;
using BaseSet.Logic;
using BaseSet.Entity;
using BaseSet.Framework;
using BaseSet.Entity.Common;
using BaseSet.Entity.Common.Text;
using BaseSet.Entity.Common.Web;
using BaseSet;
using System.Data;

namespace WebSite
{
    public partial class loadad : System.Web.UI.Page
    {
        private string userid = "";
        private string positionid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            userid = Request.QueryString["userid"] + "";//用户ID
            positionid = Request.QueryString["positionid"] + "";//广告位ID

            if (!Page.IsPostBack)
            {
                AdPositionHelper aphelper = new AdPositionHelper();
                string result = aphelper.BindAd(userid, positionid, 1);
                litResult.Text = result;
            }
        }
    }
}